<template>
    <div class=''>
        <button @click="add">{{msg}}</button>
    </div>
</template>

<script>
export default {
    props:{
      msg: String,
    },
    methods: {
        add(){
          this.$emit('btnclick',{name:'张三',age:18})
        }
    },
};
</script>

<style lang='scss'>

</style>
